});
this.add(this._emojiPager, { expand: true });
- this._pageIndicator = new PageIndicators.PageIndicators(false);
+ this._pageIndicator = new PageIndicators.PageIndicators(
+ Clutter.Orientation.HORIZONTAL
+ );
this.add(this._pageIndicator, { expand: true, x_fill: false, y_fill: false });
this._pageIndicator.setReactive(false);
var PageIndicators = GObject.registerClass({
Signals: { 'page-activated': { param_types: [GObject.TYPE_INT] } }
}, class PageIndicators extends St.BoxLayout {
- _init(vertical = true) {
- super._init({ style_class: 'page-indicators',
- vertical,
- x_expand: true, y_expand: true,
- x_align: vertical ? Clutter.ActorAlign.END : Clutter.ActorAlign.CENTER,
- y_align: vertical ? Clutter.ActorAlign.CENTER : Clutter.ActorAlign.END,
- reactive: true,
- clip_to_allocation: true });
+ _init(orientation = Clutter.Orientation.VERTICAL) {
+ let vertical = orientation == Clutter.Orientation.VERTICAL;
+ super._init({
+ style_class: 'page-indicators',
+ vertical,
+ x_expand: true, y_expand: true,
+ x_align: vertical ? Clutter.ActorAlign.END : Clutter.ActorAlign.CENTER,
+ y_align: vertical ? Clutter.ActorAlign.CENTER : Clutter.ActorAlign.END,
+ reactive: true,
+ clip_to_allocation: true
+ });
this._nPages = 0;
this._currentPage = undefined;
this._reactive = true;
var AnimatedPageIndicators = GObject.registerClass(
class AnimatedPageIndicators extends PageIndicators {
_init() {
- super._init(true);
+ super._init();
this.connect('notify::mapped', () => {
if (!this.mapped)